package com.py.pythink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_userdetail")
@NoArgsConstructor
public class UserDetail {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private Integer oid;//头像
    private String nickname;
    private Integer sex;
    private Date birthday;
    private String address;
    private Date ctime;

    public UserDetail(Integer uid, Date ctime) {
        this.uid = uid;
        this.ctime = ctime;
    }
}
